<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Admin extends CI_Controller {

	function __construct() {
		parent::__construct();
		//cek session
		if(!$this->session->userdata('login'))
			redirect(base_url().'util/login_form');
	}
	public function index()
	{
		$this->load->view('header');
		$this->load->view('admin');
		$this->load->view('footer');
	}
}
